{% extends "base.html" %}

{% block title %}Edit {{site.name}}{% endblock %}
{% block heading %}Edit {{site.name}}{% endblock %}

{% block content %}
		
		<form action='/submitsite' method='post'>
		<input type='hidden' name='key' value='{{site.key}}' />

		<table>
			<tr>
				<td>Site name:</td>
				<td><input type='text' name='name' value='{{site.name}}' /></td>
			</tr>
			<tr>
				<td>Category:</td>
				<td><input type='text' name='category' value='{{site.category}}' /></td>
			</tr>	
			<tr>
				<td>WH Class:</td>
				<td><input type='text' name='wh_class' value='{{site.wh_class}}' /></td>
			</tr>			
			<tr>
				<td valign='top'>Triggers:</td>
				<td>
					<textarea name='triggers' rows='5' cols='50'>{% for trigger in site.wave_triggers %}{{trigger}}
{% endfor %}</textarea>
				</td>
			</tr>	
			<tr>
				<td>&nbsp;</td>
				<td><input type='submit' value='Save' /></td>
			</tr>	
		</table>

		</form>
{% endblock %}
